home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 868 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: cs.mu.OZ.AU!bounce-back
  2. From: Roman Lechtchinsky <wolfro@cs.tu-berlin.de>
  3. Newsgroups: comp.std.c++
  4. Subject: "explicit" default constructor?
  5. Date: 27 Mar 96 03:07:56 GMT
  6. Organization: Technical University of Berlin
  7. Approved: fjh@cs.mu.oz.au
  8. Message-ID: <31588662.F1@cs.tu-berlin.de>
  9. NNTP-Posting-Host: munta.cs.mu.oz.au
  10. X-Original-Date: Wed, 27 Mar 1996 01:05:54 +0100
  11. X-Mailer: Mozilla 2.0 (Win95; I)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMVixGeEDnX0m9pzZAQGX3QGAiUuW51E8tGPh8s9ohXeuQubt4nAw8h+Z
  14.     LZzFmZRpT+MQfg9XqrsFZtWKCPxyQfpa
  15.     =9FbA
  16. Originator: fjh@munta.cs.mu.OZ.AU
  17.  
  18. Hi,
  19.  
  20. as I read the section [class.conv.ctor] of the DWP, I get the impression that 
  21. the description of converting and non-converting constructors applies to all 
  22. constructors, i.e. a constructor is either converting or non-converting. A 
  23. non-converting constructor creates an object "only where a constructor call 
  24. is  explicitly  indicated by the syntax". This has no implications on 
  25. constructors with more than one parameter, but what about the default 
  26. constructor? Should a default constructor call be really indicated by the 
  27. syntax and if so, how is it to be done? What if the default constructor is 
  28. declared "explicit"? 
  29.  
  30. Bye
  31.  
  32. Roman
  33. ---
  34. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  35. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  36. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  37. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  38. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  39.